package com.dpmc.service;

import java.util.Date;
import java.util.Map;

import javax.naming.InitialContext;
import javax.naming.NamingException;

import com.common.util.ObjectUtils;
import com.core.service.ServiceInterface;
import com.dpmc.entity.TB_QSXT_SKXXJL;
import com.svc.OpenEJBsvc;

public class test_SVC_QSXT {

	/**
	 * @param args
	 * @throws NamingException 
	 */
	public static void main(String[] args) throws NamingException { 
		 InitialContext ctx = OpenEJBsvc.openEJB_InitialContext();   
		 SVC_QSXTLocal svc = (SVC_QSXTLocal) ctx.lookup("SVC_QSXTLocal");
		 TB_QSXT_SKXXJL skxxjl = new TB_QSXT_SKXXJL();
		 skxxjl.setSJ_POS_JHM("Pos0001");
		 skxxjl.setXFKH("111222");
		 skxxjl.setSKJE(10000);
		 skxxjl.setSKSJ(new Date());
		 skxxjl.setZDH("201110280002");
		 Map param = ObjectUtils.javaBeanToMap(skxxjl);
		 param.put(ServiceInterface.SYSPARAM_SSO_OPTIME, new Date());
		 svc.doClearing(param);

	}

}
